using System;

namespace ThirdLife.UI.WinForms
{
  public class MenuItemDefinition : IMenuItemDefinition
  {
    private readonly EventHandler _activationHandler;
    private readonly string _menu;
    private readonly string _name;
    private readonly int _order;

    public MenuItemDefinition(string menu, string name, int order, EventHandler activationHandler)
    {
      _menu = menu;
      _activationHandler = activationHandler;
      _order = order;
      _name = name;
    }

    #region IMenuItemDefinition Members

    public int Order
    {
      get { return _order; }
    }

    public string Name
    {
      get { return _name; }
    }

    public string Menu
    {
      get { return _menu; }
    }

    public EventHandler ActivationHandler
    {
      get { return _activationHandler; }
    }

    #endregion
  }
}